package com.lance.answer.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 新疆一体化 视频和课程的信息；
 */
@NoArgsConstructor
@Data
public class XjCourseVideoInfoTmp {


    @JsonProperty("code")
    private String code;
    @JsonProperty("content")
    private List<ContentDTO> content;
    @JsonProperty("ts")
    private Long ts;

    @NoArgsConstructor
    @Data
    public static class ContentDTO {
        @JsonProperty("id")
        private String id;
        @JsonProperty("parentId")
        private String parentId;
        @JsonProperty("level")
        private Integer level;
        @JsonProperty("name")
        private String name;
        @JsonProperty("type")
        private Integer type;
        @JsonProperty("children")
        private List<ChildrenDTO> children;
        @JsonProperty("enable")
        private Integer enable;
        @JsonProperty("sort")
        private Integer sort;

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO {
            @JsonProperty("id")
            private String id;
            @JsonProperty("parentId")
            private String parentId;
            @JsonProperty("name")
            private String name;
            @JsonProperty("link")
            private String link;
            @JsonProperty("type")
            private Integer type;
            @JsonProperty("children")
            private List<?> children;
            @JsonProperty("enable")
            private Integer enable;
            @JsonProperty("sort")
            private Integer sort;
            @JsonProperty("extensionName")
            private String extensionName;
            private int traceTime;
        }
    }
}
